import allure

def singleton(cls):
    instance = {}

    def wapper():
        if cls not in instance:
            instance[cls] = cls()
        return instance[cls]
    return wapper

@singleton
class AllureStep:
    def __init__(self):
        self.laststep = ""

    def print_step(self,step):
        self.laststep = step
        return allure.step(step)


mAllureStep = AllureStep()


